home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 415_02 / rtti / rtti.addenda < prev    next >
Encoding:
Text File  |  1993-10-04  |  1.1 KB  |  25 lines

  1.  
  2. What is RTTI ?
  3. --------------
  4.  
  5. The C++ language currently does not provide a mechanism for an object to
  6. determine its type at run-time. Some applications do need to know the names
  7. of classes, their inheritance structure and other information at run-time.
  8. In order to meet this need, the ANSI C++ committee has approved a proposal
  9. for a language extension to support Run Time Type Information (RTTI).
  10.  
  11. The RTTI support in C++ consistes of three components :
  12. 1. The "dynamic_cast" operator allows for automatic run-time checks for
  13.    type conversions.
  14. 2. The "typeid" operator may be used to return the type of an object at
  15.    run-time.
  16. 3. The possibility of user-defined libraries to extend the built-in RTTI
  17.    facilities.
  18.  
  19. The software contained in this package provides library support for the
  20. above-mentioned features. This is meant to be a stop-gap implementation,
  21. until commercial compilers support the RTTI extensions. When commercial
  22. compiler support for RTTI is widely available, the library could be used
  23. in conjunction with built-in language features to support user-dfefined
  24. extensions.
  25.